package org.leslie.service;

import jakarta.validation.constraints.NotNull;
import org.leslie.pojo.User;

public interface UserService {
    User findByUserName(String username);

    void register(String username, String password);

    void update(User user);

    User findByUserId(@NotNull Integer id);

    void updateAvatar(String avatar);

    void updatePassword(String newPassword);
}
